		var xmlHttp
		var divName
		
		var scriptName
		var tempX = 0;
		var tempY = 0;
		var refreshParent=0;
		var tblHeight=0;
		//asdf
		var IE = document.all?true:false

		
		function showFloatContent(page,divId,width,height,valueX,valueY){
			//alert(page+" "+divId+" "+width+" "+height);
			
			if(valueY==null)
			{
				valueY=100;
			}
			
			var scrolledX, scrolledY;
			if( self.pageYoffset ) {
			scrolledX = self.pageXoffset;
			scrolledY = self.pageYoffset;
			} else if( document.documentElement && document.documentElement.scrollTop ) {
			scrolledX = document.documentElement.scrollLeft;
			scrolledY = document.documentElement.scrollTop;
			} else if( document.body ) {
			scrolledX = document.body.scrollLeft;
			scrolledY = document.body.scrollTop;
			}
			
			// Next, determine the coordinates of the center of browser's window
			
			var centerX, centerY;
			if( self.innerHeight ) 
			{
				centerX = self.innerWidth;
				centerY = self.innerHeight;
			} 
			else if( document.documentElement && document.documentElement.clientHeight ) 
			{
				centerX = document.documentElement.clientWidth;
				centerY = document.documentElement.clientHeight;
			}
			 else if( document.body ) 
			{
				centerX = document.body.clientWidth;
				centerY = document.body.clientHeight;
			}
			
			// Xwidth is the width of the div, Yheight is the height of the
			// div passed as arguments to the function:
			var leftoffset = scrolledX + (centerX - width) / 2;
			var topoffset = (scrolledY + (centerY - height) / 2)-valueY;
			// The initial width and height of the div can be set in the
			// style sheet with display:none; divid is passed as an argument to // the function
			var o=document.getElementById(divId);
			
			var r=o.style;
			r.position='absolute';
			r.top = topoffset + 'px';
			r.left = leftoffset + 'px';
			r.display = "block"; 
				
			r.width = width+'px';
			r.height = height + 'px';
		
		    
		    changeContent(page,divId);   
			r.visibility = "visible";
				
		}
		
		function hideFloatContent(divId,isParent){
			 
			if(isParent==null || isParent==0){
				
				changeContent("close.php",divId);  
				document.getElementById(divId).style.visibility = "hidden";
			}else{
				if(isParent==1){
					parent.document.getElementById(divId).style.visibility = "hidden";
				}else if(isParent==2){
					parent.parent.document.getElementById(divId).style.visibility = "hidden";
				}
			}
		}
		
		function changeContent(page,divNameValue,userHeight)
		{ 
			
			xmlHttp=GetXmlHttpObject()
			if (xmlHttp==null)
			{
			 alert ("Browser does not support HTTP Request")
			 return
			} 
			
			divName=divNameValue
			if(userHeight!=null)
			{
				tblHeight=userHeight;
			}else{
				tblHeight=0;
			}
			
			xmlHttp.onreadystatechange=stateChangedResult
			xmlHttp.open("GET",page,true)
			xmlHttp.send(null)
			
		}
		
		
		function stateChangedResult() 
		{
			
			if (xmlHttp.readyState==1) 
			{ 
				
				document.getElementById(divName).innerHTML="<table height="+tblHeight+"><td valign=center width='100%'><img src='images/loading1.gif'></td></table>";
			}
			else if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{ 
				
				reResult=xmlHttp.responseText;
				var test="<table style='border:1px solid black;background-color:white'><Td>asdfasjd fjalsjdfl </td></table>";
				
				document.getElementById(divName).innerHTML=reResult;
			} 
		}
		
		
		
		function GetXmlHttpObject()
		{
			var xmlHttp=null;
			try
			 {
			 // Firefox, Opera 8.0+, Safari
			 xmlHttp=new XMLHttpRequest();
			 }
			catch (e)
			 {
			 //Internet Explorer
			 try
			  {
			  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			  }
			 catch (e)
			  {
			  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			 }
			return xmlHttp;
		}
		function linkMouseOver(obj)
		{
			document.body.style.cursor='hand';
		}
		
		function linkMouseOut(obj)
		{
			document.body.style.cursor='auto';
		}
		
		function openWindow(url)
		{
			window.open(url,'mywindow','status=0,toolbar=0,scrollbars=0,resizable=0,menubar=0,width=350,height=250,location=0'); 
		}
		
		function linkMouseClickedOut(obj)
		{
			document.body.style.cursor='auto';
		}